class Shared::Province < ActiveRecord::Base
  belongs_to :obj_department, :class_name => 'Shared::Department', :foreign_key => 'department'
  has_many :districts, :class_name => 'Shared::District', :foreign_key => 'province'
  has_many :complaints, :class_name => 'RequestAndComplaint::Complaint', :foreign_key => 'province'
  has_many :cultural_institutions, :class_name => 'CulturalHeritage::CulturalInstitution', :foreign_key => 'province'
  default_scope where("deleted = 0")
end
